package canglang.monitor.user.model;

import canglang.monitor.core.base.model.BaseModel;

public class UserModel extends BaseModel {

    private static final long serialVersionUID = -1669955692116324230L;

    private String userId;

    private String userName;

    private int deptId;

    private String newPassword;

    private String userPassword;

    private String confirmPassword;

    private String userRole;

    private String permission1 = "N";

    private String permission2 = "N";

    private String permission3 = "N";

    private String permission4 = "N";

    private String permission5 = "N";

    private String permission6 = "N";

    private String permission7 = "N";

    private String permission8 = "N";

    private String permission9 = "N";

    private String permission10 = "N";
    
    private String viewAllInd="N";

    public String getViewAllInd() {
		return viewAllInd;
	}

	public void setViewAllInd(String viewAllInd) {
		this.viewAllInd = viewAllInd;
	}

	private String selectId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public String getSelectId() {
        return selectId;
    }

    public void setSelectId(String selectId) {
        this.selectId = selectId;
    }

    public String getPermission1() {
        return permission1;
    }

    public void setPermission1(String permission1) {
        this.permission1 = permission1;
    }

    public String getPermission2() {
        return permission2;
    }

    public void setPermission2(String permission2) {
        this.permission2 = permission2;
    }

    public String getPermission3() {
        return permission3;
    }

    public void setPermission3(String permission3) {
        this.permission3 = permission3;
    }

    public String getPermission4() {
        return permission4;
    }

    public void setPermission4(String permission4) {
        this.permission4 = permission4;
    }

    public String getPermission5() {
        return permission5;
    }

    public void setPermission5(String permission5) {
        this.permission5 = permission5;
    }

    public String getPermission6() {
        return permission6;
    }

    public void setPermission6(String permission6) {
        this.permission6 = permission6;
    }

    public String getPermission7() {
        return permission7;
    }

    public void setPermission7(String permission7) {
        this.permission7 = permission7;
    }

    public String getPermission8() {
        return permission8;
    }

    public void setPermission8(String permission8) {
        this.permission8 = permission8;
    }

    public String getPermission9() {
        return permission9;
    }

    public void setPermission9(String permission9) {
        this.permission9 = permission9;
    }

    public String getPermission10() {
        return permission10;
    }

    public void setPermission10(String permission10) {
        this.permission10 = permission10;
    }

    public boolean getCheckPermission1() {
        return "Y".equalsIgnoreCase(permission1);
    }

    public boolean getCheckPermission2() {
        return "Y".equalsIgnoreCase(permission2);
    }

    public boolean getCheckPermission3() {
        return "Y".equalsIgnoreCase(permission3);
    }

    public boolean getCheckPermission4() {
        return "Y".equalsIgnoreCase(permission4);
    }

    public boolean getCheckPermission5() {
        return "Y".equalsIgnoreCase(permission5);
    }

    public boolean getCheckPermission6() {
        return "Y".equalsIgnoreCase(permission6);
    }

    public boolean getCheckPermission7() {
        return "Y".equalsIgnoreCase(permission7);
    }

    public boolean getCheckPermission8() {
        return "Y".equalsIgnoreCase(permission8);
    }

    public boolean getCheckPermission9() {
        return "Y".equalsIgnoreCase(permission9);
    }

    public boolean getCheckPermission10() {
        return "Y".equalsIgnoreCase(permission10);
    }

}
